]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
tests: Don't check value before calling g_free
authorBilal Elmoussaoui <belmouss@redhat.com>
Wed, 8 Apr 2026 12:02:44 +0000 (14:02 +0200)
committerBilal Elmoussaoui <belmouss@redhat.com>
Wed, 8 Apr 2026 12:02:44 +0000 (14:02 +0200)
It is NULL safe anyways.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4162>

src/st/test-theme.c

index ab99f558dba01f3decb4bfcb42297ba1e028f88c..51fa061089e24b0fb801da991073d0db1cf5a383 100644 (file)
@@ -78,8 +78,7 @@ assert_font_features (StThemeNode *node,
       fail = TRUE;
     }
 
-  if (value)
-    g_free (value);
+  g_free (value);
 }
 
 static char *